/*
 * @Author: your name
 * @Date: 2022-03-30 11:10:44
 * @LastEditTime: 2022-05-02 10:04:55
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \blog-system-front\src\Pages\Article\writeArticle\noData.js
 */
import React, { useState } from "react";
import { Button, Card, Empty, Form, Modal, notification } from "antd";
import { CloseOutlined } from "@ant-design/icons";
import request from "@/api";
import AddModal from "../article_caterory/addModal";
export default function NoData(props) {
  const { close, addTag } = props;
  const [newStatus, setNewStatus] = useState(false);
  const [form] = Form.useForm();
  /**
   * @description: 保存标签
   * @param {*}
   * @return {*}
   */
  const saveCategorys = () => {
    form.validateFields().then((values) => {
      request({
        url: "/v1/article/category/save",
        method: "POST",
        data: values,
      }).then((res) => {
        if (!res.failed) {
          notification.success({
            message: res.message,
          });
          setNewStatus(false);
          // initData();
        }
      });
    });
  };
  return (
    <div style={{ height: "270px" }}>
      <Empty description="暂无标签"></Empty>
    </div>
  );
}
